package com.aurora.oa.utils;

import android.text.TextUtils;

import java.util.List;

/**
 * Created by Administrator on 2017/3/21 0021.
 */
public class StringUtils {
    /**
     *
     * @param stringList
     * @return 把stringList变成逗号分隔的String
     */
    public static String  getStringFromList(List<String> stringList){
        StringBuilder stringBuilder =new StringBuilder();
        for(int i=0;i<stringList.size();i++){
            if(i<stringList.size()-1){
                stringBuilder.append(stringList.get(i)+",") ;
            }else{
                stringBuilder.append(stringList.get(i)) ;
            }
        }
        return stringBuilder.toString();
    }

    public static boolean isNullString(String content) {
        return TextUtils.isEmpty(content);
    }
}
